package Command;

import Server.Command;
import Server.cmdArguments;

public class MinCommand implements Command{

	private cmdArguments args;

	@Override
	public String execute() {
		int min = args.bst.getMinValue();
		if(min == -1){
			return "There aren't any values yet";
		}
		return "The minimum value is " + args.bst.getMinValue();
	}

	@Override
	public String undo() {
		return "The request for the minimum value can't be undon, please try again";
	}

	@Override
	public void setArgs(cmdArguments args) {
		this.args = args;		
	}

}
